
class AssertUtil:
    #封装ihrm断言,
    @classmethod
    def ihrm_assert(cls,resp,status_code,success,code,message):
        assert status_code ==resp.status_code
        assert success ==resp.json().get("success")
        assert code ==resp.json().get("code")
        assert message ==resp.json().get("message")

    #封装tpshop断言,
    @classmethod
    def tpshop_assert(cls,resp,status_code,status,msg):
        assert status_code == resp.status_code
        assert status == resp.json().get("status")
        assert msg == resp.json().get("msg")


